// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_HR_CAR_RENTING
// * CreateDate    : 2011/11/7 12:58:39
// * Creater       : CodeSmith
// * LastChangeDate: 2011/11/7 12:58:39
// * LastChanger   : 2011/11/7 12:58:39
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class HrCarRentingTable : TableInfo
    {
		public const string C_TableName = "HR_CAR_RENTING";
		
		public const string C_RENTING_ID = "RENTING_ID";
		public const string C_DEPARTMENT_ID = "DEPARTMENT_ID";
		public const string C_PERSON_ID = "PERSON_ID";
		public const string C_PERSON_COUNT = "PERSON_COUNT";
		public const string C_RENTING_REASON = "RENTING_REASON";
		public const string C_DESTINATION = "DESTINATION";
		public const string C_CAR_NO = "CAR_NO";
		public const string C_START_DATE = "START_DATE";
		public const string C_END_DATE = "END_DATE";
		public const string C_START_MILEAGE = "START_MILEAGE";
		public const string C_END_MILEAGE = "END_MILEAGE";
		public const string C_APPROVE_REMARK = "APPROVE_REMARK";
		public const string C_REMARK = "REMARK";
		public const string C_CREATED_BY = "CREATED_BY";
		public const string C_CREATED_DATE = "CREATED_DATE";
		public const string C_LAST_MODIFIED_BY = "LAST_MODIFIED_BY";
		public const string C_LAST_MODIFIED_DATE = "LAST_MODIFIED_DATE";
		public const string C_APPROVED_BY = "APPROVED_BY";
		public const string C_APPROVED_DATE = "APPROVED_DATE";
		public const string C_STATUS = "STATUS";
		
		public HrCarRentingTable()
        {
            _tableName = "HR_CAR_RENTING";
        }
		
		protected static HrCarRentingTable _current;
        public static HrCarRentingTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new HrCarRentingTable();

            _current.Add(C_RENTING_ID, new ColumnInfo(C_RENTING_ID,"RentingId", true, typeof(string)));
            _current.Add(C_DEPARTMENT_ID, new ColumnInfo(C_DEPARTMENT_ID,"DepartmentId", false, typeof(string)));
            _current.Add(C_PERSON_ID, new ColumnInfo(C_PERSON_ID,"PersonId", false, typeof(string)));
            _current.Add(C_PERSON_COUNT, new ColumnInfo(C_PERSON_COUNT,"PersonCount", false, typeof(int)));
            _current.Add(C_RENTING_REASON, new ColumnInfo(C_RENTING_REASON,"RentingReason", false, typeof(string)));
            _current.Add(C_DESTINATION, new ColumnInfo(C_DESTINATION,"Destination", false, typeof(string)));
            _current.Add(C_CAR_NO, new ColumnInfo(C_CAR_NO,"CarNo", false, typeof(string)));
            _current.Add(C_START_DATE, new ColumnInfo(C_START_DATE,"StartDate", false, typeof(DateTime)));
            _current.Add(C_END_DATE, new ColumnInfo(C_END_DATE,"EndDate", false, typeof(DateTime)));
            _current.Add(C_START_MILEAGE, new ColumnInfo(C_START_MILEAGE,"StartMileage", false, typeof(decimal)));
            _current.Add(C_END_MILEAGE, new ColumnInfo(C_END_MILEAGE,"EndMileage", false, typeof(decimal)));
            _current.Add(C_APPROVE_REMARK, new ColumnInfo(C_APPROVE_REMARK,"ApproveRemark", false, typeof(string)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK,"Remark", false, typeof(string)));
            _current.Add(C_CREATED_BY, new ColumnInfo(C_CREATED_BY,"CreatedBy", false, typeof(string)));
            _current.Add(C_CREATED_DATE, new ColumnInfo(C_CREATED_DATE,"CreatedDate", false, typeof(DateTime)));
            _current.Add(C_LAST_MODIFIED_BY, new ColumnInfo(C_LAST_MODIFIED_BY,"LastModifiedBy", false, typeof(string)));
            _current.Add(C_LAST_MODIFIED_DATE, new ColumnInfo(C_LAST_MODIFIED_DATE,"LastModifiedDate", false, typeof(DateTime)));
            _current.Add(C_APPROVED_BY, new ColumnInfo(C_APPROVED_BY,"ApprovedBy", false, typeof(string)));
            _current.Add(C_APPROVED_DATE, new ColumnInfo(C_APPROVED_DATE,"ApprovedDate", false, typeof(DateTime)));
            _current.Add(C_STATUS, new ColumnInfo(C_STATUS,"Status", false, typeof(string)));
			
		}
		
		public ColumnInfo RENTING_ID
        {
            get { return this[C_RENTING_ID]; }
        }
		
		public ColumnInfo DEPARTMENT_ID
        {
            get { return this[C_DEPARTMENT_ID]; }
        }
		
		public ColumnInfo PERSON_ID
        {
            get { return this[C_PERSON_ID]; }
        }
		
		public ColumnInfo PERSON_COUNT
        {
            get { return this[C_PERSON_COUNT]; }
        }
		
		public ColumnInfo RENTING_REASON
        {
            get { return this[C_RENTING_REASON]; }
        }
		
		public ColumnInfo DESTINATION
        {
            get { return this[C_DESTINATION]; }
        }
		
		public ColumnInfo CAR_NO
        {
            get { return this[C_CAR_NO]; }
        }
		
		public ColumnInfo START_DATE
        {
            get { return this[C_START_DATE]; }
        }
		
		public ColumnInfo END_DATE
        {
            get { return this[C_END_DATE]; }
        }
		
		public ColumnInfo START_MILEAGE
        {
            get { return this[C_START_MILEAGE]; }
        }
		
		public ColumnInfo END_MILEAGE
        {
            get { return this[C_END_MILEAGE]; }
        }
		
		public ColumnInfo APPROVE_REMARK
        {
            get { return this[C_APPROVE_REMARK]; }
        }
		
		public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }
		
		public ColumnInfo CREATED_BY
        {
            get { return this[C_CREATED_BY]; }
        }
		
		public ColumnInfo CREATED_DATE
        {
            get { return this[C_CREATED_DATE]; }
        }
		
		public ColumnInfo LAST_MODIFIED_BY
        {
            get { return this[C_LAST_MODIFIED_BY]; }
        }
		
		public ColumnInfo LAST_MODIFIED_DATE
        {
            get { return this[C_LAST_MODIFIED_DATE]; }
        }
		
		public ColumnInfo APPROVED_BY
        {
            get { return this[C_APPROVED_BY]; }
        }
		
		public ColumnInfo APPROVED_DATE
        {
            get { return this[C_APPROVED_DATE]; }
        }
		
		public ColumnInfo STATUS
        {
            get { return this[C_STATUS]; }
        }
		
		
		
	}
}

